// app.js
App({
  onLaunch() {
    const token = wx.getStorageSync('token') 
    if(token){
      wx.switchTab({
        url: './pages/foodMain/foodMain',
      })
    }else{
      wx.redirectTo({
        url: './pages/login/login',
      })
    }
},
  globalData: {
    userInfo: null
  },

  arraySelectList:[
    { Id: 0, sid: 's01', spath: '1lu.jpg', sname: '糖醋鲤鱼',title:'鲤鱼，花生油，醋，食盐'},
    { Id: 0, sid: 's02', spath: '1su.jpg', sname: '松鼠鳜鱼', title:'鲜活鳜鱼，青豌豆，绍酒' },
    { Id: 0, sid: 's03', spath: '2xiang.jpg', sname: '剁椒鱼头', title:'鱼头，剁椒'},
    { Id: 1, sid: 's04', spath: '2lu.jpg', sname: '芙蓉鸡片', title:'鸡柳肉，鸡蛋'},
    { Id: 1, sid: 's05', spath: '3lu.jpg', sname: '德州扒鸡', title:'全净膛专用鸡，蜂蜜，饴糖，香辛料'},
    { Id: 1, sid: 's06', spath: '1chuan.jpg', sname: '辣子鸡', title:'鸡肉、辣椒、花椒' },
    { Id: 2, sid: 's07', spath: '2su.jpg', sname: '狮子头',title:'五花肉，鸡蛋，淀粉，葱姜'},
    { Id: 2, sid: 's08', spath: '2zhe.jpg', sname: '东坡肉', title:'猪肉' },
    { Id: 3, sid: 's09', spath: '2lu.jpg', sname: '芙蓉鸡片', title:'鸡柳肉，鸡蛋' },
    { Id: 4, sid: 's10', spath: '2xiang.jpg', sname: '剁椒鱼头', title:'鱼头，剁椒'},
    { Id: 4, sid: 's11', spath: '1chuan.jpg', sname: '辣子鸡', title:'鸡肉、辣椒、花椒'},
    { Id: 5, sid: 's12', spath: '2yue.jpg', sname: '广式肠粉', title:'粘米粉'},
    { Id: 5, sid: 's13', spath: '2su.jpg', sname: '狮子头',title:'五花肉，鸡蛋，淀粉，葱姜'},
    { Id: 6, sid: 's14', spath: '3chuan.jpg', sname: '麻婆豆腐', title:'豆腐，肉末' },
    { Id: 6, sid: 's15', spath: '3hui.jpg', sname: '徽州毛豆腐', title:'毛豆腐，小葱末，姜末' },
    { Id: 7, sid: 's16', spath: '2hui.jpg', sname: '中和汤', title:'豆腐，虾米，鲜瘦肉,水发香菇，鲜冬笋尖'},
    { Id: 8, sid: 's17', spath: '2yue.jpg', sname: '广式肠粉', title:'粘米粉'},
    { Id: 8, sid: 's18', spath: '2min.jpg', sname: '烧仙草', title:'仙草，糖，芋圆，奶茶' }
  ],

  arraySelectTypeList:[
    [{Sid:'00',sid: 's01', spath: '1lu.jpg', sname: '糖醋鲤鱼',title:'鲤鱼，花生油，醋，食盐'},
    { Sid:'30',sid: 's02', spath: '1su.jpg', sname: '松鼠鳜鱼', title:'鲜活鳜鱼，青豌豆，绍酒' },
    { Sid:'61',sid: 's03', spath: '2xiang.jpg', sname: '剁椒鱼头', title:'鱼头，剁椒'}],
    [{Sid:'01',sid: 's04', spath: '2lu.jpg', sname: '芙蓉鸡片', title:'鸡柳肉，鸡蛋'},
    { Sid:'02',sid: 's05', spath: '3lu.jpg', sname: '德州扒鸡', title:'全净膛专用鸡，蜂蜜，饴糖，香辛料'},
    { Sid:'10',sid: 's06', spath: '1chuan.jpg', sname: '辣子鸡', title:'鸡肉、辣椒、花椒' }],
    [{Sid:'31',sid: 's07', spath: '2su.jpg', sname: '狮子头',title:'五花肉，鸡蛋，淀粉，葱姜'},
    { Sid:'41',sid: 's08', spath: '2zhe.jpg', sname: '东坡肉', title:'猪肉' }],
    [{Sid:'01',sid: 's09', spath: '2lu.jpg', sname: '芙蓉鸡片', title:'鸡柳肉，鸡蛋' }],
    [{Sid:'61',sid: 's10', spath: '2xiang.jpg', sname: '剁椒鱼头', title:'鱼头，剁椒'},
    { Sid:'10',sid: 's11', spath: '1chuan.jpg', sname: '辣子鸡', title:'鸡肉、辣椒、花椒'}],
    [{Sid:'21',sid: 's12', spath: '2yue.jpg', sname: '广式肠粉', title:'粘米粉'},
    { Sid:'31',sid: 's13', spath: '2su.jpg', sname: '狮子头',title:'五花肉，鸡蛋，淀粉，葱姜'}],
    [{Sid:'12',sid: 's14', spath: '3chuan.jpg', sname: '麻婆豆腐', title:'豆腐，肉末' },
    { Sid:'72',sid: 's15', spath: '3hui.jpg', sname: '徽州毛豆腐', title:'毛豆腐，小葱末，姜末' }],
    [{Sid:'71',sid: 's16', spath: '2hui.jpg', sname: '中和汤', title:'豆腐，虾米，鲜瘦肉,水发香菇，鲜冬笋尖'}],
    [{Sid:'21',sid: 's17', spath: '2yue.jpg', sname: '广式肠粉', title:'粘米粉'},
    { Sid:'51',sid: 's18', spath: '2min.jpg', sname: '烧仙草', title:'仙草，糖，芋圆，奶茶' }]
  ],
  arrayCollectList:[],
  arrayLikeList:[],
  
})
